﻿@if (Request.IsAuthenticated) {
    <text>
      <span id="helloSpan">Hello! </span> @Html.ActionLink(User.Identity.Name, "MyProfile", "Home", routeValues: null, htmlAttributes: new { @class = "username" }) 
     
            @Html.ActionLink("Edit Profile", "Manage", "Account", routeValues: null, htmlAttributes: new { title = "Manage" })
            @using (Html.BeginForm("LogOff", "Account", FormMethod.Post, new { id = "logoutForm" })) {
            @Html.AntiForgeryToken()
            <a href="javascript:document.getElementById('logoutForm').submit()">Log off</a>
        }
            
            @Html.Action("_ShowingInvite", "Games")   
    </text>
} else {
    <ul>
        <li>@Html.ActionLink("Register", "Register", "Account", routeValues: null, htmlAttributes: new { id = "registerLink" })</li>
        <li>@Html.ActionLink("Log in", "Login", "Account", routeValues: null, htmlAttributes: new { id = "loginLink" })</li>
    </ul>
}
